package cn.how2go.api.service.impl;

import cn.how2go.api.entity.Cone;
import cn.how2go.api.mapper.ConeMapper;
import cn.how2go.api.service.ConeService;
import cn.how2go.api.vo.ConeType;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LGP
 * @since 2020-05-31
 */
@Service
public class ConeServiceImpl extends ServiceImpl<ConeMapper, Cone> implements ConeService {

    @Autowired
    private ConeMapper coneMapper;

    @Override
    public boolean updateByGroup(Cone cone) {
        return coneMapper.updateByGroup(cone);
    }

    @Override
    public List<ConeType> countByType() {
        return coneMapper.countByType();
    }
}
